package com.shenhua.pdfboxctl.controller;

import com.shenhua.pdfboxctl.service.PdfService;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;

@RestController
@RequestMapping("/pdfService")
public class PdfController {

  @Resource
  PdfService pdfService;

  @PostMapping("/getKeylocation")
  public Integer getCataLogLocation(@RequestParam("file") MultipartFile file,
                                    @RequestParam("keyword")String catalog_keyword){
   return pdfService.getKeyLocation(file,catalog_keyword);
  }


}
